<template>
	<button
	  open-type="getUserInfo"
	  hover-class="none"
	  @getuserinfo="toGoodsHistory"
	  class="goods-history-btn"
	  <!-- #ifdef H5 -->
	  @click="toGoodsHistory"
	  <!-- #endif -->
	>
	</button>
</template>

<script>
export default {
	data() {
		return {
		}
	},
	props: {
	},
	computed: {
	},
	methods: {
		toGoodsHistory(e){
			this.$Login.login({
					  wxObj: e,
					  site: '/package_user/viewHistory/viewHistory',
					  noRefresh: true,
					  success: () => {
						  this.$routeUtils.navigateTo({
						    url: '/package_user/viewHistory/viewHistory',
						  })
					  }
			})
		}
	}
};
</script>

<style lang="scss" scoped>
	.goods-history-btn{
		width: 88rpx;
		height: 88rpx;
		background-image: url('https://resource.migudm.cn/group1/M00/D1/C8/oYYBAGQhgVqAZ0inAAAG7E-mxjk404.png');
		background-size: contain;
		background-repeat: no-repeat;
		z-index: 10;
		margin-bottom: env(safe-area-inset-bottom);
	}
</style>
